/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -04 -11
 * Time: 15:42
 */
public class Main {
    public static void main(String[] args) {
        Triangle2D t1=new Triangle2D();
        Triangle2D t2=new Triangle2D(new MyPoint2D(1,2),new MyPoint2D(2,1),new MyPoint2D(3,2));
        System.out.println(t1.getArea());
        System.out.println(t2.getArea());
        System.out.println(t1.getPerimeter());
        System.out.println(t2.getPerimeter());
        System.out.println(t1.contains(new MyPoint2D(1, 2)));
        System.out.println(t2.contains(new MyPoint2D(1.5, 2.5)));
        System.out.println(t1.contains(t2));
        System.out.println(t1.overlaps(t2));
    }
}
